﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StoreManagementSystem.DataAccessLayer;
using StoreManagementSystem.DomainObjects;
using System.Web;
using System.Configuration;

namespace TesterWeb
{
    [TestFixture]
    class StoreUserDAOTester
    {
        [Test]
        public void createUserTest()
        {
           var factory = new SQLDAOFactory(new SQLDataProvider( "MySQLConnectionString"));
           var storeUserTest
               = factory.createDAO("storeuser");
           Assert.IsInstanceOf<SQLStoreUserDAO>(storeUserTest);
           StoreUser userTest = new StoreUser("123", "John", "Vidrine", "youcanneverdefeathelalelulilo", "JusticeFist", "OverLimitAccelSynchro@gmail.com");
           storeUserTest.create(userTest);         
        }


    }
}
